package com.lft.stack;

public class LinkedListStackDemo {
	public static void main(String[] args) {
		LinkedListStack<Integer> stack = new LinkedListStack<>();
		stack.push(1);
		stack.push(2);
		stack.push(3);
		stack.push(4);
		stack.lists();
		
		System.out.println();
		System.out.println(stack.pop());
		System.out.println(stack.pop());
		System.out.println(stack.pop());
		System.out.println(stack.pop());
		stack.lists();
	}
}